package com.agrm.api.client;

import com.agrm.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

@FeignClient("upload-service")
public interface UploadClient {

    @PostMapping("api/v1/upload/picture")
    public ResponseResult<String> upload(@RequestBody MultipartFile file);

}
